package com.yf.mp.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yf.mp.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yf.mp.dto.UserDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 62493
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2024-11-17 17:54:37
* @Entity com.yf.mp.domain.User
*/
public interface UserMapper extends BaseMapper<User> {

    void updateBalanceByIds(@Param(Constants.WRAPPER) LambdaQueryWrapper<User> lqw, @Param("amount") int amount);

    List<UserDTO> queryUserByWrapper(@Param("ew") QueryWrapper<User> queryUserWrapper);
}




